package com.example.skudemo;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@SpringBootApplication
@MapperScan(basePackages = {"com.example.skudemo.mapper"})
public class SkuApiApplication {
    private static final Logger LOG = LoggerFactory.getLogger(SkuApiApplication.class);
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(SkuApiApplication.class);
        Environment env = app.run(args).getEnvironment();
        LOG.info("服务已经启动!!");
        LOG.info(String.format("服务已经启动,请访问测试地址:\thttp://localhost:%s%s", env.getProperty("server.port"),env.getProperty("server.servlet.context-path")));

    }


}
